cli: Add tag-aware upgrade operations#2094
Merged
cgwalters merged 1 commit intobootc-dev:mainfrom Mar 30, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces new bootc upgrade CLI options: --tag to specify a target image tag for an upgrade, and --list-tags to display available tags for the currently booted image's repository. It includes new helper functions derive_image_with_tag and list_tags_for_current_image to support this functionality, along with corresponding unit tests and documentation updates. A review comment suggests refactoring duplicated logic within the upgrade function for retrieving the current image and handling cases where it's not defined, as well as making error messages more specific.
4e09e3a to
893c24a
Compare
cgwalters
reviewed
Mar 25, 2026
4c5ca28 to
c7274c6
Compare
cgwalters
reviewed
Mar 26, 2026
74468cf to
9a90db8
Compare
Implements bootc upgrade --tag <TAG> to upgrade to a different tag of the current image without typing the full registry path. Implementation: - Added ImageReference::with_tag() method in spec.rs - Uses OCI Reference API for registry and containers-storage transports - Falls back to string manipulation for oci: and other complex transports - Properly strips digests when replacing tags - Works with all transport types Testing: - Unit tests cover registry, containers-storage, digest handling, and edge cases - Integration test (test-upgrade-tag.nu) uses containers-storage to verify full tag-switching workflow across reboots without registry dependency Documentation updated with --tag examples. Assisted-by: Claude (Sonnet 4.5) Signed-off-by: gursewak1997 <gursmangat@gmail.com>
9a90db8 to
d012edd
Compare
cgwalters
approved these changes
Mar 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements
bootc upgrade --tag <TAG>to upgrade to a different tagof the current image without typing the full registry path.
Implementation:
ImageReference::with_tag()method in spec.rsTesting:
full tag-switching workflow across reboots without registry dependency